USE [BusSystem]
GO

/****** Object:  Table [dbo].[Bus_BusMaintenance]    Script Date: 05/23/2010 23:58:08 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Bus_BusMaintenance](
	[RecID] [int] IDENTITY(1,1) NOT NULL,
	[DocID] [varchar](20) NOT NULL,
	[BusID] [varchar](20) NULL,
	[BusIdentificationNO] [nvarchar](50) NULL,
	[MaintenanceTypeID] [varchar](20) NULL,
	[MaintenanceTypeName] [nvarchar](50) NULL,
	[MaintenanceDate] [smalldatetime] NULL,
	[MaintenanceManufacturer] [nvarchar](50) NULL,
	[MaintenancePrincipal] [nvarchar](20) NULL,
	[MaintenanceMajorComponent] [nvarchar](100) NULL,
	[TotalCost] [decimal](18, 0) NULL,
	[MaintenanceOutList] [nvarchar](100) NULL,
	[RecDivID] [varchar](20) NULL,
	[RecAcct] [varchar](20) NULL,
	[RecDate] [smalldatetime] NULL,
	[Void] [bit] NOT NULL,
	[VoidAcct] [varchar](20) NULL,
	[VoidDate] [smalldatetime] NULL,
	[UserAcct] [varchar](20) NOT NULL,
	[LastUpdateDate] [smalldatetime] NOT NULL,
 CONSTRAINT [PK_Bus_BusMaintenance] PRIMARY KEY CLUSTERED 
(
	[DocID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Bus_BusMaintenance] ADD  CONSTRAINT [DF_Bus_BusMaintenance_Void]  DEFAULT ((0)) FOR [Void]
GO


